package o2o.utils.json;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: yangtongkuan
 * Date: 2019/1/10
 * Time: 10:43
 * Description: 返回信息解析基类
 */
public abstract class ResultInformation<T> {
    private int status = 0;
    private Integer size = 0;
    private Integer totalCount = 0;
    private String error;
    private String type;
    private T info;
    private List<T> data;

    public Integer getSize() {
        return size;
    }

    public ResultInformation setSize(Integer size) {
        this.size = size;
        return this;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public ResultInformation setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
        return this;
    }

    public T getInfo() {
        return info;
    }

    public ResultInformation setInfo(T info) {
        this.info = info;
        return this;
    }

    public int getStatus() {
        return status;
    }

    public ResultInformation setStatus(int status) {
        this.status = status;
        return this;
    }

    public String getError() {
        return error;
    }

    public ResultInformation setError(String error) {
        this.error = error;
        return this;
    }

    public String getType() {
        return type;
    }

    public ResultInformation setType(String type) {
        this.type = type;
        return this;
    }

    public List<T> getData() {
        return data;
    }

    public ResultInformation setData(List<T> data) {
        this.data = data;
        return this;
    }
}